package com.tunxing.行为型.状态设计模式;

public class Context {
    public OrderState orderState;

    public String orderId;

    public Context(OrderState orderState, String orderId) {
        this.orderState = orderState;
        this.orderId = orderId;
    }

    public void pay() {
        orderState.pay(this);
    }

    public void remind() {
        orderState.remind(this);
    }

    public void comment() {
        orderState.comment(this);
    }

    public String getOrderId() {
        return orderId;
    }
}
